﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
using OgilvyOne.Model;
using OgilvyOne.DALFactory;

namespace OgilvyOne.BLL
{
    public class CmsArticleImgsBll
    {
        public int Add(CmsArticleImgModel model)
        {
            return CmsArticleImgsFactory.create().Add(model);
        }
        public bool Update(CmsArticleImgModel model)
        {
            return CmsArticleImgsFactory.create().Update(model);
        }
        public CmsArticleImgModel GetImgModel(int iid)
        {
            return CmsArticleImgsFactory.create().GetImgModel(iid);
        }
        /// <summary>
        /// 查询文章图片
        /// </summary>
        /// <param name="q">q.articleId 文章ID</param>
        /// <returns></returns>
        public IList GetImgsList(CmsArticleImgModel q)
        {
            return CmsArticleImgsFactory.create().GetImgsList(q);
        }

        public bool Delete(int iid)
        {
            return CmsArticleImgsFactory.create().Delete(iid);
        }
    }
}
